$OpenBSD: patch-avidemux_ADM_video_ADM_interlaced_cpp,v 1.2 2012/08/20 11:51:00 pascal Exp $
--- avidemux/ADM_video/ADM_interlaced.cpp.orig	Fri Aug 10 18:43:45 2012
+++ avidemux/ADM_video/ADM_interlaced.cpp	Fri Aug 10 18:44:34 2012
@@ -70,7 +70,8 @@ Skip factor=2
 		mm2 contains 4 bytes of n
 */
 
-#if (defined( ARCH_X86)  || defined(ARCH_X86_64)) && defined(ASM_ILACING)
+#if (defined( ARCH_X86)  || defined(ARCH_X86_64)) && defined(ASM_ILACING) && \
+	!defined(__PIC__)
 
 static uint32_t      ADMVideo_interlaceCount_MMX( uint8_t *src ,uint32_t w, uint32_t h);
 static uint8_t *_l_p asm(MANGLE(_l_p)) =NULL;
@@ -111,7 +112,8 @@ static uint32_t      ADMVideo_interlaceCount_C( uint8_
 
 uint32_t      ADMVideo_interlaceCount( uint8_t *src ,uint32_t w, uint32_t h)
 {
-#if (defined( ARCH_X86)  || defined(ARCH_X86_64)) && defined(ASM_ILACING)  
+#if (defined( ARCH_X86)  || defined(ARCH_X86_64)) && defined(ASM_ILACING)  && \
+	!defined(__PIC__)
         if(CpuCaps::hasMMX())
                 return ADMVideo_interlaceCount_MMX(src,w,h);
         else
@@ -120,7 +122,8 @@ uint32_t      ADMVideo_interlaceCount( uint8_t *src ,u
 
 }
 
-#if (defined( ARCH_X86)  || defined(ARCH_X86_64)) && defined(ASM_ILACING)  
+#if (defined( ARCH_X86)  || defined(ARCH_X86_64)) && defined(ASM_ILACING)  && \
+	!defined(__PIC__)
 uint32_t      ADMVideo_interlaceCount_MMX( uint8_t *src ,uint32_t w, uint32_t h)
 {
 uint32_t m=0,y,x;
